<style type="text/css">
    .page_tree li {margin: 2px 0;}
    .page_tree li a {float: left; margin-left: 5px;}
</style>
<?php
$this->widget('zii.widgets.jui.CJuiTabs', array(
    'id'=>'page-tabs',
    'tabs'=>array(
        'Header'=>$this->renderPartial('_container',array(
            'items'=>$header,
            'type'=>'header',
            'page_id'=>$page_id,
            'revision_id'=>$revision_id
        ), true),
        'Footer'=>$this->renderPartial('_container',array(
            'items'=>$footer,
            'type'=>'footer',
            'page_id'=>$page_id,
            'revision_id'=>$revision_id
        ), true),
    ),
    'options'=>array(
        'cache'=>true,
    )
));